public class Bomb extends Projectile
{
  public Bomb(int xpos, int ypos)
  {
    super(xpos, ypos);
  } 

  public void updatePosition(AnimationContext context)  
  {
    ypos = ypos + context.BombSpeed;
    
    xpos += int(random(-5,5));
  }

  public void display()  
  {
    fill(140, 300, 300);
    renderRectangle();
  }
}

